home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / pagemakerclasslibrary / commands / pdefinemasterpage.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-04  |  1.1 KB  |  46 lines

  1. /*
  2.  *--- PDefineMasterPage.cpp -----------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PDefineMasterPage.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PDefineMasterPage.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. PDefineMasterPage::PDefineMasterPage
  16.   (    const char * sMasterName,
  17.     PMBool    bOverwrite,
  18.     short    bSpread,
  19.     long    xLeftOrInside,
  20.     long    yTop,
  21.     long    xRghtOrOutsd,
  22.     long    yBottom,
  23.     short    nColumns,
  24.     long    xGutter,
  25.     short    nColmnRghtPg,
  26.     long    xGutterRghtPg )
  27. {
  28.     PRequestBuf request(strlen(sMasterName) + 64);
  29.     
  30.     request << sMasterName
  31.             << bOverwrite
  32.             << bSpread
  33.             << xLeftOrInside
  34.             << yTop
  35.             << xRghtOrOutsd
  36.             << yBottom
  37.             << nColumns
  38.             << xGutter
  39.             << nColmnRghtPg
  40.             << xGutterRghtPg; 
  41.     
  42.     PCommand command(pm_definemasterpage, request);
  43. }
  44.  
  45. // end of PDefineMasterPage.cpp
  46.